package com.whyx.project.openapi.business;

import com.alibaba.fastjson.JSONObject;

import java.text.SimpleDateFormat;

public class FaceInfo extends DriverFace {


    public String driverId;

    public String jobSeniorityCard;

    public String driverName;

    public int facePictureAgreement;

    public String facePictureId;

    public String facePictureUrl;

    public JSONObject toJSONString() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        JSONObject object = new JSONObject();
        object.put("Type", Type);
        object.put("faceNumber", faceNumber);
        object.put("driverId",driverId);
        object.put("jobSeniorityCard", jobSeniorityCard);
        object.put("driverName", driverName);
        object.put("facePictureAgreement",facePictureAgreement);
        object.put("facePictureId", facePictureId);
        object.put("facePictureUrl", facePictureUrl);
        object.put("distributeMsgTopic", distributeMsgTopic);
        object.put("devNo", devNo);
        object.put("requestId", requestId);
        object.put("userId", userId);
        object.put("userName", userName);
        object.put("distributeTime", sdf.format(distributeTime));
        object.put("msgId", msgId);
        object.put("serialNo", serialNo);
        return object;
    }
}
